//
//  ZLPSearchCollectionViewCell.m
//  TangYi
//
//  Created by dllo on 15/10/28.
//  Copyright © 2015年 赵连鹏. All rights reserved.
//

#import "ZLPSearchCollectionViewCell.h"

@implementation ZLPSearchCollectionViewCell

- (void)dealloc {
    [_en_nameLabel release];
    [_nameLabel release];
    [_iconView release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.iconView = [[UIImageView alloc] initWithFrame:CGRectMake(10, 10, self.contentView.frame.size.height - 20, self.contentView.frame.size.height - 20)];
        [self.contentView addSubview:self.iconView];
        [_iconView release];
        
        self.nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(self.contentView.frame.size.height - 20 + 15, 10, 70, self.contentView.frame.size.height / 2 - 10)];
        self.nameLabel.font = [UIFont systemFontOfSize:20];
        [self.contentView addSubview:self.nameLabel];
        [_nameLabel release];
        
        self.en_nameLabel  = [[UILabel alloc] initWithFrame:CGRectMake(self.contentView.frame.size.height - 20 + 15, self.contentView.frame.size.height / 2 - 5, 100, self.contentView.frame.size.height / 2)];
        [self.contentView addSubview:self.en_nameLabel];
        self.en_nameLabel.textColor = [UIColor grayColor];
        [_en_nameLabel release];
        
    }
    return self;
}

@end
